<?php
defined('BY_JYA') or exit('error');
$_RQ['op']=$_RQ['op']?$_RQ['op']:'basic';
$return=array();
/*******basic*******/
if($_RQ['op']=='basic'){
	if($_RQ['postdata']){
		$postdata=get_postdata();
		$this->plugin_setting('basic',$postdata);
		exi('设置成功');
	}
	$return['item']=$this->plugin_setting('basic');
	$htmls=array(
		'type'=>'edit',
		'desc'=>'服务费设置',
		'edit'=>array(
			array('type'=>'switch','title'=>'发布信息是否收费','name'=>'ispay'),
			array('type'=>'unitstring','title'=>'费用','name'=>'fabufee','unit'=>'元/次','show'=>array('ispay'=>1)),
			array('type'=>'unitstring','title'=>'每个企业免费次数','name'=>'freetime','unit'=>'次','show'=>array('ispay'=>1)),
			array('type'=>'switch','title'=>'开启企业收费','name'=>'vipopen','help'=>'充值企业可以免费发布信息，发信息付费时有效'),
			array('type'=>'string','title'=>'月费','name'=>'mfee','show'=>array('vipopen'=>1)),
			array('type'=>'string','title'=>'月费原价','name'=>'mfee0','show'=>array('vipopen'=>1)),
			array('type'=>'string','title'=>'季费','name'=>'jfee','show'=>array('vipopen'=>1)),
			array('type'=>'string','title'=>'季费原价','name'=>'jfee0','show'=>array('vipopen'=>1)),
			array('type'=>'string','title'=>'年费','name'=>'yfee','show'=>array('vipopen'=>1)),
			array('type'=>'string','title'=>'年费原价','name'=>'yfee0','show'=>array('vipopen'=>1)),
			array('type'=>'image','title'=>'企业收费页面背景图','name'=>'vipbg','help'=>'建议尺寸：高360px*宽640px','show'=>array('vipopen'=>1)),
			array('type'=>'text','title'=>'企业收费协议','name'=>'agreement','help'=>'','show'=>array('vipopen'=>1)),
		),
	);
	$return['htmls']=$htmls;
	exi($return);
}
/*******basic*******/
/*******op*******/
